package org.fuyd.model;

import java.util.Set;

/**
 * 学生的实体类
 * 
 * @author 永德
 *
 */
public class Student {
  /** 业务无关主键 **/
  private int id;
  /** 姓名 **/
  private String name;
  /** 都有哪些老师教 **/
  private Set<Teacher> teachers;

  public int getId() {
    return id;
  }

  public String getName() {
    return name;
  }

  public Set<Teacher> getTeachers() {
    return teachers;
  }

  public void setId(int id) {
    this.id = id;
  }

  public void setName(String name) {
    this.name = name;
  }

  public void setTeachers(Set<Teacher> teachers) {
    this.teachers = teachers;
  }

  @Override
  public String toString() {
    return "student:" + name;
  }
}
